import request from '@/utils/request'

// 查询助力奖品设置列表
export function listProbability(query) {
  return request({
    url: '/system/probability/list',
    method: 'get',
    params: query
  })
}

// 查询助力奖品设置详细
export function getProbability(id) {
  return request({
    url: '/system/probability/' + id,
    method: 'get'
  })
}

// 新增助力奖品设置
export function addProbability(data) {
  return request({
    url: '/system/probability',
    method: 'post',
    data: data
  })
}

// 修改助力奖品设置
export function updateProbability(data) {
  return request({
    url: '/system/probability',
    method: 'put',
    data: data
  })
}

// 删除助力奖品设置
export function delProbability(id) {
  return request({
    url: '/system/probability/' + id,
    method: 'delete'
  })
}

// 导出助力奖品设置
export function exportProbability(query) {
  return request({
    url: '/system/probability/export',
    method: 'get',
    params: query
  })
}